widget: Add static inline version of gtk_widget_display()
authorTimm Bäder <mail@baedert.org>
Sat, 21 Apr 2018 15:03:31 +0000 (17:03 +0200)
committerTimm Bäder <mail@baedert.org>
Sat, 21 Apr 2018 16:48:15 +0000 (18:48 +0200)
commitc3e02b2b22bf592d84753790713de883d2de543a
tree8466811e3d5853b3b01ed052d8c0ca8edc2503b7
parent1a24a360bdc80520030482509e61fe192ae7ef34
widget: Add static inline version of gtk_widget_display()

Due to the few type checks in gtk_widget_get_display(), it was the
slowest part of a call to gtk_widget_query_size_for_orientation if the
in case of a cache hit.
gtk/gtkwidget.c
gtk/gtkwidgetprivate.h